package com.enjoyread.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_userlog")
@NoArgsConstructor//无参构造
public class UserLog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private int uid;
    private int type;
    private String content;
    private String ip;
    private Date ctime;

    public UserLog(int uid, int type, String content, String ip, Date ctime) {
        this.uid = uid;
        this.type = type;
        this.content = content;
        this.ip = ip;
        this.ctime = ctime;
    }
}